NuGuN
(usa Arch Linux)
Enviado em 25/04/2010 - 13:13h
Boas!
É o seguinte... Tenho uma maquina com Debian Lenny e instalei o bind9. Esta tudo a funcionar e ate bem demais...lol Bem demais por que? Porque eu queria que fossem apenas resolvidos dominios da minha LAN e o servidor esta a resolver dominios da internet como por exemplo,
www.google.com,
www.hotmail.com, etc.
E eu não percebo porque. Gostava que me ajudassem a perceber onde esta o problema. Deixo aqui os meus ficheiros de configuração:
[hosts]
127.0.0.1 localhost
192.168.7.150 ns1 ns1.nugun.local nugun.local
[resolv.conf]
search nugun.local
nameserver 127.0.0.1
[named.conf]
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
include "/etc/bind/named.conf.local";
[named.conf.options]
options {
directory "/etc/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See
http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
//forwarders {
// 0.0.0.0;
//};
auth-nxdomain no; # conform to RFC1035
// listen-on-v6 { any; };
allow-query {"any";};
allow-transfer {none;};
recursion yes;
allow-recursion { 127.0.0.1; };
};
Penso que basta esta informação. Desde ja, muito obrigado pessoal!
Cumps!